 {extend name="public:base" /}
{block name="head"}
<link href="__PUBLIC__/view_res/mobile/css/wshop_company_center.css" type="text/css" rel="Stylesheet" />
<link href="__PUBLIC__/view_res/mobile/css/uc.css" type="text/css" rel="Stylesheet" />
<link href="__PUBLIC__/view_res/mobile/css/wshop_company_center.css" type="text/css" rel="Stylesheet" />
<link href="__PUBLIC__/jquery-weui/dist/lib/weui.min.css" type="text/css" rel="Stylesheet" />
{/block} 
{block name="header"}
{include file="public/top-nav" /}
{/block}
{block name="content"}
<div id="wrapper">
    <div class="close"></div>
</div>
<style>
/*.user{
    position: relative;
    color: #444;
    padding-left: 20px;
    line-height: 30px;
    font-size: 14px;

    border-bottom: 1px solid #eee;
    background: url(../images/icon_bar-right.png) 97.5% center no-repeat #fefefe;
    background-size: 15px 16px;
    display: block;
    outline: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);}*/
table tr{

    position: relative;
    color: #444;
    padding-left: 50px;
    line-height: 40px;
    font-size: 14px;
    background: url(../images/icon_bar-right.png) 97.5% center no-repeat #fefefe;

}
td{padding-left: 18px;}
</style>

<!-- <div style="width: 100%;">
	<img src="__PUBLIC__/view_res/mobile/images/geren.png" alt="" width="10%" height="10%" style="float: left;">
	<strong style="font-size: 18px; display: block; float: left; line-height: 40px;">个人资料</strong>
</div> -->
<div class="shezhi">
	<img src="__RES__/mobile/images/geren.png?v=1)" alt="">
	<b style="font-size: 18px; display: inline-block; margin-top: 10px;">合伙人详细信息</b></div>

{notempty name='partner'}
<table width="100%" height="214" border="0" cellpadding="0" cellspacing="1">
  <tr>
    <td width="30%" align="right">级别：</td>
    <td width="70%">
    				{eq name='$partner.user_level' value='0'}
                        您还没有达到合伙人的条件，请继续充入巨能果
                    {/eq}
      				{eq name='$partner.user_level' value='1'}
                        一级合伙人
                    {/eq}  

    				{eq name='$partner.user_level' value='2'}
                        二级合伙人
                    {/eq}

    				{eq name='$partner.user_level' value='3'}
                        三级合伙人
                    {/eq}

    				{eq name='$partner.user_level' value='4'}
                        四级合伙人
                    {/eq}

      				{eq name='$partner.user_level' value='5'}
                        五级合伙人
                    {/eq}                                                                                          
    </td>
  </tr>
  <tr>
    <td width="20%" align="right">合伙人待遇：</td>
    <td width="80%">
    				{eq name='$partner.user_level' value='0'}
                        您还没有达到合伙人的条件，请继续充入巨能果
                    {/eq}
      				{eq name='$partner.user_level' value='1'}
                        1000
                    {/eq}  

    				{eq name='$partner.user_level' value='2'}
                        2000
                    {/eq}

    				{eq name='$partner.user_level' value='3'}
                        4000
                    {/eq}

    				{eq name='$partner.user_level' value='4'}
                        10000
                    {/eq}

      				{eq name='$partner.user_level' value='5'}
                        25000
                    {/eq} 


    </td>
  </tr>
  <tr>
    <td width="20%" align="right">成为合伙人时间</td>
    <td width="80%">
        			{eq name='$partner.user_level' value='0'}
                        您还没有达到合伙人的条件，请继续充入巨能果
                    {/eq}   

      <?php 
      		if($partner['join_dt'])
      		{
      			echo date('Y-m-d',$partner['join_dt']);	
      		}
      		 

      ?></td>
  </tr>
{eq name='$partner.status' value='0'}
 <tr>
    <td width="20%" align="right">合伙人状态：</td>
    <td width="80%">

    	
                        当前合伙人考核不通过
                    </td>
  </tr>
  {/eq}

  {eq name='$partner.status' value='3'}
 <tr>
    <td width="20%" align="right">合伙人状态：</td>
    <td width="80%">

    	
                        申请退出合伙人
                    </td>
  </tr>
  {/eq}

{eq name='$partner.status' value='4'}
 <tr>
    <td width="20%" align="right">合伙人状态：</td>
    <td width="80%">

    	
                        已经审核并退出合伙人
                    </td>
  </tr>
  {/eq}
  <tr>
    <td width="20%" align="right">巨能果：</td>
    <td width="80%">{$partner['goldstone']}</td>
  </tr>
  
</table>
{/notempty}
<style>
.shezhi{
    color: #444;
    padding-left: 50px;
    line-height: 42px;
    font-size: 12px;
    border-top: 1px solid #eee;

}
.shezhi img{
    width: 40px;
    height: 40px;
    float: left;
    margin-top: 5px;
    margin-left: -50px;
}
</style>
        
       
  
 {empty name='partner'}       
<div class="weui_btn_area">
	<a class="weui_btn weui_btn_primary" href="{:url('partner/join')}">充入巨能果加入合伙人</a>
</div>
{/empty}

{notempty name='partner'}
	{eq name='$partner.status' value='1'}
	<div class="weui_btn_area">
		<a class="weui_btn weui_btn_primary" href="{:url('partner/recharge')}">增加合伙人巨能果数量</a>

	</div>
	{notempty name='partner'}
	<div class="weui_btn_area">
		<a class="weui_btn weui_btn_primary" href="{:url('partner/quit')}">申请退出合伙人</a>
	</div>
	{/notempty}
	{/eq}
	{eq name='$partner.status' value='0'}
	<div class="weui_btn_area">
		<a class="weui_btn weui_btn_primary" href="{:url('partner/recharge')}">增加合伙人巨能果数量</a>
	</div>
	{/eq}
{/notempty}



{/block}

{block name="footer"}
{include file="public/footer-nav" /}
{/block}

{block name="script"}
<script data-main="__RES__/mobile/js/shop_uchome.js" src="__RES__/mobile/js/require.min.js"></script>
{/block}